package cn.qkfintech.visitor.base;

import android.app.Activity;
import android.os.Bundle;

import com.qmuiteam.qmui.arch.QMUIActivity;

import butterknife.ButterKnife;


/**
 * @author liuhe
 * @date 2020/03/17
 */
public abstract class BaseActivity extends QMUIActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(getLayoutResId());
        ButterKnife.bind(this);
        init();
    }

    @Override
    protected boolean translucentFull() {
        return true;
    }

    protected abstract int getLayoutResId();

    protected abstract void init();

}